// 应收接口 zq
import request from '@/utils/request'
// 新增
export function addFee(data) {
  return request({
    url: 'finance/customsClearanceReceivable/addOrModify',
    method: 'post',
    data,
  })
}
export function addFees(data) {
  return request({
    url: 'finance/receivable/insertReceivableOrDeatils',
    method: 'post',
    data,
  })
}

// 修改
export function editFee(data) {
  return request({
    url: 'finance/receivable',
    method: 'put',
    data,
  })
}
// 删除
export function delFee(data) {
  return request({
    url: 'finance/customsClearanceReceivable/deleteCustomsClearanceReceivableDetailsById',
    method: 'delete',
    data,
  })
}
export function delFees(ids) {
  return request({
    url: `finance/receivable/${ ids }`,
    method: 'delete',
    
  })
}

export function getPayList(ladingNo) {
  return request({
    url: `finance/payable/queryCustomsClearancePayableByLadingNo/${ ladingNo }`,
    method: 'post',
    
  })
}

// 新增
export function addPay(data) {
  return request({
    url: 'finance/payableMain/addCustomsClearancePayable',
    method: 'post',
    data,
  })
}

export function delPay(ids) {
  return request({
    url: `/finance/payable/deleteSysExpensesPayableByIds/${ ids }`,
    method: 'delete',
    
  })
}